package priv.mill.server.impl;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import priv.mill.dao.mapper.SysUserInfoMapper;
import priv.mill.entry.SysUserInfo;
import priv.mill.server.SysUserInfoService;

@Component
public class SysUserInfoServiceImpl implements SysUserInfoService{

	private static final Logger logger = Logger
			.getLogger(SysUserInfoServiceImpl.class);

	@Autowired
	private SysUserInfoMapper sysUserInfoMapper;
	
	@Override
	public SysUserInfo getSysUserInfoById(Integer sysUserInfoId) {
		return sysUserInfoMapper.getSysUserInfoById(sysUserInfoId);
	}

	@Override
	public SysUserInfo getSysUserInfoByEntry(SysUserInfo sysUserInfo) {
		return sysUserInfoMapper.getSysUserInfoByEntry(sysUserInfo);
	}

	@Override
	public List<SysUserInfo> getSysUserInfosByPage(SysUserInfo sysUserInfo) {
		return sysUserInfoMapper.getSysUserInfosByPage(sysUserInfo);
	}

	@Override
	public int updateSysUserInfo(SysUserInfo sysUserInfo) {
		return sysUserInfoMapper.updateSysUserInfo(sysUserInfo);
	}

	@Override
	public int insertSysUserInfo(SysUserInfo sysUserInfo) {
		return sysUserInfoMapper.insertSysUserInfo(sysUserInfo);
	}

	@Override
	public int deleteSysUserInfo(Integer sysUserInfoId) {
		return sysUserInfoMapper.deleteSysUserInfo(sysUserInfoId);
	}
}
